<template>
  <div>
    <el-card class="mb20" shadow="never">
      <task-form @search="handleSearch" ref="taskForm" />
    </el-card>
    <el-card shadow="never">
      <!-- <div class="mb20" style="text-align: right"> -->
      <!-- <el-button icon="el-icon-plus" type="primary" @click="handleAdd">新增考评方案</el-button> -->
      <!-- </div> -->
      <task-list ref="taskList" />
    </el-card>
  </div>
</template>

<script>
import TaskForm from './TaskForm'
import TaskList from './TaskList'
export default {
  components: {
    TaskForm,
    TaskList
  },
  methods: {
    handleSearch(param) {
      this.$refs.taskList.getPlanList(param)
    },
    handleAdd() {
      this.$router.push({
        name: 'satisfactionCreateScheme',
        params: { type: 'add' }
      })
    }
    // handleEdit(type, row) {
    //   this.$refs.planModal.edit(type, row)
    // }
  }
}
</script>